home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15459 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  796 b 

  1. Path: news.production.compuserve.com!news
  2. From: Steve Farson <75226.1623@CompuServe.COM>
  3. Newsgroups: comp.lang.c++
  4. Subject: C++ Read Comma Delimted Text File
  5. Date: 5 Apr 1996 16:55:26 GMT
  6. Organization: CompuServe, Inc. (1-800-689-0736)
  7. Message-ID: <4k3j9u$jaj$1@mhadg.production.compuserve.com>
  8.  
  9. I've never seen or heard of any example showing how to read a 
  10. comma delimted text file looking something like this:
  11.  
  12. ABC,13,12.3,Houston
  13. DEF,4,11.4,Denver
  14. EFG,21,14.7,Phoenix
  15.  
  16. into variables.  I have a C program doing this, but think there 
  17. surely is some C++ functions that can help here.  Someone 
  18. mentioned Getline() once, but every reference I have says nothing 
  19. about how it would/could be used.  If anyone could provide a 
  20. snippet or two on how this is done, it would be great.
  21.  
  22. Thanks! Steve
  23.